import { createStore, applyMiddleware } from "redux"
import thunk from "redux-thunk"
import reducer from "./reducer"
import { composeWithDevTools } from "redux-devtools-extension"

export type rootState = ReturnType<typeof reducer>
const store = createStore(reducer, composeWithDevTools(applyMiddleware(thunk)))

export default store
